package cn.com.haopy.yue.ai.db.entity.arisk;

import cn.com.haopy.yue.ai.db.entity.BaseEntity;
import cn.com.haopy.yue.ai.db.mybatis.JsonObjectsTypeHandler;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import java.math.BigDecimal;
import java.util.Map;

/**
 * @Description: TODO
 * @Author DuTao
 * @Date 2025/3/26 9:05
 */
@Data
@TableName(value = "arisk_papers_illness", autoResultMap = true)
@ApiModel(value = "问卷-疾病")
public class AIRiskPapersIllness extends BaseEntity {
    @TableField(value = "paper_id")
    @ApiModelProperty(value = "用户ID")
    private Integer paperId;

    @TableField(value = "illness_id")
    @ApiModelProperty(value = "疾病ID")
    private Integer illnessId;

    @TableField(value = "illness_name")
    @ApiModelProperty(value = "疾病名称")
    private String illnessName;


    @ApiModelProperty(value = "输入的内容input参数")
    @TableField(value = "input_params", jdbcType = JdbcType.BLOB, typeHandler = JsonObjectsTypeHandler.class)
    private Map<String, Object> inputParams;

    @TableField(value = "question")
    @ApiModelProperty(value = "提问query")
    private String question;

    @TableField(value = "result", jdbcType = JdbcType.BLOB)
    @ApiModelProperty(value = "结果")
    private String result;

    @TableField(value = "result_json", jdbcType = JdbcType.BLOB, typeHandler = JsonObjectsTypeHandler.class)
    @ApiModelProperty(value = "结果")
    private Map<String, Object> resultJson;


    @TableField(value = "is_answer", jdbcType = JdbcType.BIT)
    @ApiModelProperty(value = "是否有结果")
    private Boolean isAnswer;


    @TableField(value = "risk", jdbcType = JdbcType.VARCHAR)
    @ApiModelProperty(value = "风险险评估-值文本")
    private String risk;


    @TableField(value = "risk_score", jdbcType = JdbcType.DECIMAL)
    @ApiModelProperty(value = "风险评估分数")
    private BigDecimal riskScore;


}
